import { SHOPAPI } from '../util/api_config'
import createApiAction from './createApiAction'

const homeAction = {
  // 获取单个动漫数据
  getVod: createApiAction({
    url: SHOPAPI('index.php?s=plus-search-id'),
    method: 'GET',
    state: 'VOD_ID'
  }),
  getPixiv: createApiAction({
    url: 'https://api.imjad.cn/pixiv/v1/',
    method: 'GET',
    state: 'GET_PIXIV'
  }),
}

module.exports = homeAction
